#ifndef BILL_H
#define BILL_H

#include <iostream>

#include "document.h"
#include "file_io_exceptions.h"
#include "document_exceptions.h"
#include "date_exceptions.h"

///header file for subclass of Document to implement Bill
///("szamla")

class Bill : public Document
{
	private:
		int total;

		void set_total(const int& p_total) throw();
	
	public:
		Bill() throw();
		///sets type to 1, which means Bill ("szamla")

		int get_total() const throw();
		
		virtual void fill_in_document_data(std::istream &p_in_stream) throw (File_IO_exceptions, Document_exceptions, Date_exceptions);
		///different input procedure when reading from std::cin or from something else
		
		virtual int print_out_document_data(std::ostream &p_out_stream) throw(Date_exceptions, Document_exceptions);
		///different output procedure when writing to std::cout or to something else

};

#endif
